<template>
    <div class="hotRecommend">
        <h1 class="hotRecommend-title">热销推荐</h1>
        <ul class="hotRecommend-list">
            <li class="list-item" v-for="item in recommendList" :key="item.id">
                <div class="pic"><img :src="item.imgUrl" alt=""></div>
                <div class="content">
                    <h2 class="title">{{item.title}}</h2>
                    <p class="describe">{{item.desc}}</p>
                    <div class="price"><span class="sell-price">99</span>起</div>
                </div>
            </li>
        </ul>
        <div class="more">查看所有产品</div>
    </div>
</template>

<script>
    export default {
        name:'hotRecommend',
        props: ['recommendList'],
        data() {
            return {

            }
        },
        methods: {

        }
    }
</script>

<style scoped>
    .hotRecommend{
        width: 100%;
    }
    .hotRecommend-title{
        width: 100%;
        height: .85rem;
        line-height: .85rem;
        padding-left: .3rem;
        font-size: .28rem;
        font-weight: bold;
    }
    .hotRecommend-list{
        background-color: #ffffff;
        width: 100%;
    }
    .list-item{
        display: flex;
        width: 100%;
        padding:.15rem .2rem;
        border-bottom: 2px solid #eeeeee;
    }
    .list-item .pic{
        width: 2rem;
    }
    .list-item .pic img{
        width: 100%;
    }
    .list-item .content{
        margin-left: .3rem;
    }
    .list-item .content .title{
        font-size: 0.3rem;
        font-weight: bold;
        margin-top: .15rem;
    }
    .list-item .content .describe{
        margin-top: .3rem;
        font-size: .28rem;
        color: #bbbbbb;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .list-item .content .price{
        margin-top: .3rem;
    }
    .price .sell-price{
        color: red;
        font-size: 0.36rem;
        font-weight: bold;
        margin-right: .1rem;
    }
    .more{
        width: 100%;
        line-height: .82rem;
        font-size: .28rem;
        color: aqua;
        text-align: center;
        background-color: #ffffff;
    }
</style>

